import request2 from '@/utils/request2'
import { officeApiUrl } from '../config'
import { officeApiUrl1 } from '../config'


export default {
    // 权限
    permissions(data, params) {
        return request2({
            url: officeApiUrl + '/memorabilia/permissions', method: 'get', params, data
        })
    },
    // 大事记管理-列表分页
    findList(data, params) {
        return request2({
            url: officeApiUrl + '/memorabilia/findList', method: 'post', params, data
        })
    },
    // 大事记管理-详情
    findDetailById(data, params) {
        return request2({
            url: officeApiUrl + '/memorabilia/findDetailById/' + params.id, method: 'get', params, data
        })
    },
    // 大事记管理-删除基本信息
    deleteMainById(params, data) {
        return request2({
            url: officeApiUrl + '/memorabilia/deleteMainById/' + params.id, method: 'get', params, data
        })
    },
    // 大事记管理-编辑基本信息
    editByMain(data, params) {
        return request2({
            url: officeApiUrl + '/memorabilia/editByMain', method: 'post', params, data
        })
    },
    // 大事记管理-新增基本信息
    createByMain(data, params) {
        return request2({
            url: officeApiUrl + '/memorabilia/createByMain', method: 'post', params, data
        })
    }
}
